<?php /* Smarty version 2.6.19, created on 2013-02-26 18:12:05
         compiled from C:%5Cxampp%5Chtdocs%5Cudeal.in/Interfaces/templates/admin/cms/view_page_list.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'C:\\xampp\\htdocs\\udeal.in/Interfaces/templates/admin/cms/view_page_list.tpl', 24, false),array('modifier', 'ucfirst', 'C:\\xampp\\htdocs\\udeal.in/Interfaces/templates/admin/cms/view_page_list.tpl', 45, false),array('function', 'sortorder', 'C:\\xampp\\htdocs\\udeal.in/Interfaces/templates/admin/cms/view_page_list.tpl', 37, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_header1'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_header2'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_leftsidebar'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="holdthisTop">


<div class="middel_panel">
		<h1 class="type2">Content Pages</h1>
		
		<div class="holdthisTop">
		<form name="frmAction" method="post" action="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/cms/update_page_action" id="frmAction">
		<input type="hidden" id="sorttype" value="" />
		<input type="hidden" id="sortord" value="" />
		<table width="100%" cellspacing="0" cellpadding="0" border="0">
			<tr>
					<td align="left">
						<img src="<?php echo $this->_tpl_vars['site_images_path']; ?>
/icons/add.png" align="top"  alt="add" />&nbsp;
						<a href="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/cms/add/" rel ="contentarea">Add Page</a>
					</td>
			</tr>
		</table>
		<br/>	
		<?php if (0 < count($this->_tpl_vars['success_messages'])): ?>
			<?php $_from = $this->_tpl_vars['success_messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['success_message']):
?>
				<div align="center" class=successMsg><?php echo $this->_tpl_vars['success_message']; ?>
</div>
			<?php endforeach; endif; unset($_from); ?>
		<?php endif; ?>
		<div id="PortListDiv">
		<table width="100%" cellpadding="3" cellspacing="2">
  		<tr>
    		<td width="100%" valign="top" align="center" colspan="2">
       		<table width="100%"  border="0" cellpadding="0" cellspacing="0" class="datagrid">

					<tr class="headbg">
						<td width="1%" align="center"><input type="checkbox" id="checkall" /></td>
						<th width="20%"><a href="<?php echo smarty_function_sortorder(array('sorttype' => 'title','sortord' => $this->_tpl_vars['ord']), $this);?>
"> Title</a></th>
					<th width="20%"><a href="<?php echo smarty_function_sortorder(array('sorttype' => 'module','sortord' => $this->_tpl_vars['ord']), $this);?>
"> Module</a></th>
						<th width="10%" align="center">Action</th>
					</tr>
					<?php if (0 < count($this->_tpl_vars['pages'])): ?>
         			<?php $_from = $this->_tpl_vars['pages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['page']):
?>
					<tr class="grayback" id="tr_<?php echo $this->_tpl_vars['page']->getId(); ?>
">
						<td align="center" valign="top"><input type="checkbox" name="page[id][]" value="<?php echo $this->_tpl_vars['page']->getId(); ?>
" /></td>
						<td align="left" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['page']->getTitle())) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : ucfirst($_tmp)); ?>
</td>
						<td align="left" valign="top"><?php echo ((is_array($_tmp=$this->_tpl_vars['page']->getModule())) ? $this->_run_mod_handler('ucfirst', true, $_tmp) : ucfirst($_tmp)); ?>
</td>
						<td align="center" valign="top">
							<img src="<?php echo $this->_tpl_vars['site_images_path']; ?>
/icons/application_edit.png" align="top" alt="" /> 
							<a href="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/cms/edit/id/<?php echo $this->_tpl_vars['page']->getId(); ?>
" class="admintxt"><strong>Edit</strong></a>
							 | <img src="<?php echo $this->_tpl_vars['site_images_path']; ?>
/icons/film.png" align="top" alt="view" /> 
							 <a href="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/cms/view/id/<?php echo $this->_tpl_vars['page']->getId(); ?>
" class="frmtxt">View</a>
						</td>
					</tr>
					<?php endforeach; endif; unset($_from); ?>
						<tr>
							<td colspan="4">
								<strong><?php echo $this->_tpl_vars['mesg']; ?>
</strong>
							</td>
						</tr>
					<?php endif; ?>
					<tr>
					<td align="right"><img src="<?php echo $this->_tpl_vars['site_images_path']; ?>
/admin/arrow_ltr.gif" alt="" /></td>
					<td colspan="3" align="left">
						<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tr>
							<td width="10%">
								<select name="page[action]" id="action">
									<option value="">--Action--</option>
									<option value="delete">Delete</option>
									<!--<option value="1">Active</option>
									<option value="0">Inactive</option> -->
								</select>
							</td>
							<td align="left" width="6%"><span class="buttons"><input type="submit" name="submit" id="submit" value="Go" /></span></td>
						<td><span id="acterr" class="error"></span></td><td colspan="3" align="right"><?php if ($this->_tpl_vars['pgnation']): ?><?php echo $this->_tpl_vars['pgnation']; ?>
<?php endif; ?></td>
					</tr>					
				</table></td>
			</tr>
		</table>
      </form>

</table>
</div>
		</div>
	<!--middel panel ends -->
</div>
                  <!--main content ends -->
                  <!--content ends -->
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      </div>
    </div>
    <!--Banner ends -->
  </div>
		</div>
  <!--    content area ends -->
<!--<script type="text/javascript">searchUser(<?php echo $_GET['page']; ?>
);</script>-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>